﻿using System.Collections.Generic;
using DAO;
using DTO;

namespace BUS
{
    public class LoaiNguoiDungBUS
    {
        public static List<LoaiNguoiDungDTO> getAll()
        {
            return LoaiNguoiDungDAO.getAll();
        }

        public static LoaiNguoiDungDTO getAlongCode(int maLoai)
        {
            return LoaiNguoiDungDAO.getAlongCode(maLoai);
        }

        public static void Insert(LoaiNguoiDungDTO _insert)
        {
            LoaiNguoiDungDAO.Insert(_insert);
        }

        public static void Delete(int maLoai)
        {
            LoaiNguoiDungDAO.Delete(maLoai);
        }

        public static void Update(LoaiNguoiDungDTO dto)
        {
            LoaiNguoiDungDAO.Update(dto);
        }

        public static int getMa(string tenLoaiND)
        {
            return LoaiNguoiDungDAO.getMa(tenLoaiND);
        }
    }
}
